package com.vcc.service.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.BossRole;

import java.util.List;


public interface BossRoleService extends IService<BossRole> {


    Page<BossRole> paging(Page<BossRole> pageable, String roleCode, String roleName,Boolean hasAllData,Boolean hasParamStatus);


    List<BossRole> listAll(String roleName);


    BossRole getByUserId(Long userId);

    List<BossRole> listByUserId(Long userId);

    Boolean existsById(Long id);

    BossRole createRole(String roleCode,String roleName,Boolean hasAllData);

    Boolean updateRole(Long id, Boolean hasAllData);

    Boolean updateRoleHasParamStatus(Long id, Boolean hasParamStatus);
}
